#!/usr/bin/env bash

source scripts/_var.sh
source scripts/_fn.sh

DEPLOY_TARGET=/data/svc/$PROC
echo "linking..."
mkdir -p "$DEPLOY_TARGET/repo"

trace_on
  cp "$REPO_DIR/$PROC.$BIN.$HASH.bin" "$DEPLOY_TARGET/repo/"
  ln -sf "./repo/$PROC.$BIN.$HASH.bin" "$DEPLOY_TARGET/$PROC.$BIN.bin"
trace_off
